Skip to content

Add option to validate SendingTime#21

Merged
santif merged 1 commit intodevelopfrom
feat/validate-sending-time-option
Jan 14, 2026
Merged

Add option to validate SendingTime#21
santif merged 1 commit intodevelopfrom
feat/validate-sending-time-option

Conversation

@santif
Copy link
Owner

@santif santif commented Jun 30, 2025

This commit introduces a new configuration option validate_sending_time to ExFix.SessionConfig. When set to false, the validation of the SendingTime (tag 52) field in incoming messages will be skipped.

This provides flexibility for scenarios where SendingTime accuracy is not critical or is handled by other systems, potentially improving message processing performance.

The following changes were made:

  • Added validate_sending_time (boolean, default: true) to ExFix.SessionConfig.
  • Modified ExFix.Session.validate_sending_time/5 to respect this new config.
  • Updated ExFix.Parser.parse1/5 and ExFix.Parser.parse/5 to accept and pass down the validate_sending_time parameter.
  • Adjusted ExFix.Session.handle_incoming_data/2 to pass the validate_sending_time setting from the session config to the parser.
  • Added new benchmark cases in ExFixBench to compare parsing performance with and without SendingTime validation.

This commit introduces a new configuration option `validate_sending_time`
to `ExFix.SessionConfig`. When set to `false`, the validation of the
SendingTime (tag 52) field in incoming messages will be skipped.

This provides flexibility for scenarios where SendingTime accuracy
is not critical or is handled by other systems, potentially improving
message processing performance.

The following changes were made:
- Added `validate_sending_time` (boolean, default: true) to `ExFix.SessionConfig`.
- Modified `ExFix.Session.validate_sending_time/5` to respect this new config.
- Updated `ExFix.Parser.parse1/5` and `ExFix.Parser.parse/5` to accept
  and pass down the `validate_sending_time` parameter.
- Adjusted `ExFix.Session.handle_incoming_data/2` to pass the
  `validate_sending_time` setting from the session config to the parser.
- Added new benchmark cases in `ExFixBench` to compare parsing performance
  with and without SendingTime validation.
@santif santif changed the base branch from master to develop June 30, 2025 00:54
@santif santif merged commit ed00676 into develop Jan 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments